//============================================================
// Producnt name:		BoBoARTS.CodeMad
// Version: 			1.0
// Coded by:			Shen Bo (bo.shen@jb-aptech.com.cn)
// Auto generated at: 	2010-6-17 17:42:18
//============================================================

using System;
using System.Collections.Generic;
using System.Text;
using WCSY.DAL;
using WCSY.MODEL;
using System.Data.SqlClient;


namespace WCSY.BLL
{

    public static partial class Mg_rrRelationManager
    {
        public static Boolean AddMg_rrRelation(Mg_rrRelation mg_rrRelation)
        {
            return Mg_rrRelationService.AddMg_rrRelation(mg_rrRelation) > 0;
        }

        public static void DeleteMg_rrRelation(Mg_rrRelation mg_rrRelation)
        {
            Mg_rrRelationService.DeleteMg_rrRelation(mg_rrRelation);
        }

        public static void DeleteMg_rrRelationById(string roleId)
        {
            Mg_rrRelationService.DeleteMg_rrRelationById(roleId);
        }

		public static void ModifyMg_rrRelation(Mg_rrRelation mg_rrRelation)
        {
            Mg_rrRelationService.ModifyMg_rrRelation(mg_rrRelation);
        }
        
        public static IList<Mg_rrRelation> GetAllMg_rrRelations()
        {
            return Mg_rrRelationService.GetAllMg_rrRelations();
        }

        public static IList<Mg_rrRelation> GetMg_rrRelationById(string roleId)
        {
            return Mg_rrRelationService.GetMg_rrRelationById(roleId);
        }

        public static IList<Mg_rrRelation> GetMg_rrRelationBysql(string sql, params SqlParameter[] values)
        {
            return Mg_rrRelationService.GetMg_rrRelationsBySqlDataset(sql,values);
        }

        public static IList<Mg_rrRelation> GetMg_rrRelationBysql(string sql)
        {
            return Mg_rrRelationService.GetMg_rrRelationsBySqlDataset(sql);
        }

    }
}
